package spring_learn.a07;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class config {

    @Bean(initMethod = "init")
    public Bean1_07 bean1_07(){
        return new Bean1_07();
    }

    @Bean(destroyMethod = "destory1")
    public Bean2_07 bean2_07(){
        return new Bean2_07();
    }
}
